package trans.model.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the sa table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="sa"
 */

public abstract class BaseSa  implements Serializable {

	private static final long serialVersionUID = 1L;
	
	public static String REF = "Sa";
	public static String PROP_PCB = "Pcb";
	public static String PROP_ESTIMATED_NEEDED_DATE_IN_DESTINATION = "EstimatedNeededDateInDestination";
	public static String PROP_REMARKS_ON_HAWB = "RemarksOnHawb";
	public static String PROP_GATWAY = "gatway";
	public static String PROP_ORIGIN = "Origin";
	public static String PROP_ESTIMATED_DIMENSIONS = "EstimatedDimensions";
	public static String PROP_FLY_NRT_ALLOWED = "FlyNrtAllowed";
	public static String PROP_GATWAY_ID = "GatwayId";
	public static String PROP_WEIGHT = "Weight";
	public static String PROP_ORDER_NO = "OrderNo";
	public static String PROP_FLIGHT_DATE = "FlightDate";
	public static String PROP_VESSEL_DATE = "VesselDate";
	public static String PROP_CREATE_BY = "CreateBy";
	public static String PROP_MAWB_CONSIGNEE = "MawbConsignee";
	public static String PROP_ESTIMATED_WEIGHT = "EstimatedWeight";
	public static String PROP_FLAG_READ = "FlagRead";
	public static String PROP_FLIGHT_NO = "FlightNo";
	public static String PROP_HAWB_CONSIGNEE = "HawbConsignee";
	public static String PROP_CLIENT = "client";
	public static String PROP_RATE = "Rate";
	public static String PROP_PRODUCT = "Product";
	public static String PROP_HAWB_NO = "HawbNo";
	public static String PROP_HBL = "Hbl";
	public static String PROP_VWEIGHT = "Vweight";
	public static String PROP_HAWB_PAYMENT_OPTIONS = "HawbPaymentOptions";
	public static String PROP_HAVE_MSG_USER = "HaveMsgUser";
	public static String PROP_CONCEPT = "Concept";
	public static String PROP_IS_PENDDING = "IsPendding";
	public static String PROP_CLIENT_ID = "ClientId";
	public static String PROP_VOLUME_CUT_ALLOWED = "VolumeCutAllowed";
	public static String PROP_ESTIMATED_PICKUP_DATE = "EstimatedPickupDate";
	public static String PROP_SA_NO = "SaNo";
	public static String PROP_STATUS = "Status";
	public static String PROP_ESTIMATED_TIME_ARRIVAL = "EstimatedTimeArrival";
	public static String PROP_CREATE_BY_ID = "createBy_id";
	public static String PROP_STATE = "State";
	public static String PROP_FLY_USA_ALLOWED = "FlyUsaAllowed";
	public static String PROP_CREATE_TIME = "CreateTime";
	public static String PROP_MAWB_SHIPPER = "MawbShipper";
	public static String PROP_MAWB_NO = "MawbNo";
	public static String PROP_BL_NO = "BlNo";
	public static String PROP_HAWB_SHIPPER = "HawbShipper";
	public static String PROP_ID = "Id";
	public static String PROP_REMARK = "Remark";
	public static String PROP_GOODS_NATURAL = "GoodsNatural";
	public static String PROP_DESTINATION = "Destination";
	public static String PROP_CONSOLIDATION_ALLOWED = "ConsolidationAllowed";
	public static String PROP_SATYPE = "SaType";


	// constructors
	public BaseSa () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseSa (java.lang.Integer id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer id;

	// fields
	protected java.lang.String saNo;
	
	protected java.lang.String saType;

	
	private java.lang.Float pcb;
	private java.lang.Float weight;
	private java.lang.Float vweight;
	private java.lang.Float estimatedDimensions;
	private java.lang.String goodsNatural;

	private java.lang.String orderNo;

	private java.util.Date estimatedTimeArrival;

	private java.lang.String consolidationAllowed;
	
	private java.lang.Float rate;
	
	private String mawbShipper;
	private java.lang.String mawbConsignee;
	private java.lang.String hawbConsignee;
	private java.lang.String hawbShipper;
	private java.lang.String remarksOnHawb;


	private java.lang.String remark;
	private java.lang.Integer status;
	private java.util.Date createTime;
	private java.lang.Integer state;
	private java.lang.Integer isPendding;
	private java.lang.Integer flagRead;
	private java.lang.String haveMsgUser;
	private java.lang.Integer gatwayId;
	private java.lang.Integer clientId;
	private java.lang.Integer createBy_id;
	
	private String term;

	// many to one
	private trans.model.Gatway gatway;
	private trans.model.User client;
	private trans.model.User createBy;

	// collections
	private java.util.List<trans.model.SaStateHis> stateHises;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="native"
     *  column="id"
     */
	public java.lang.Integer getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.Integer id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: sa_no
	 */
	public java.lang.String getSaNo () {
		return saNo;
	}

	/**
	 * Set the value related to the column: sa_no
	 * @param saNo the sa_no value
	 */
	public void setSaNo (java.lang.String saNo) {
		this.saNo = saNo;
	}







	/**
	 * Return the value associated with the column: pcb
	 */
	public java.lang.Float getPcb () {
		return pcb;
	}

	/**
	 * Set the value related to the column: pcb
	 * @param pcb the pcb value
	 */
	public void setPcb (java.lang.Float pcb) {
		this.pcb = pcb;
	}



	/**
	 * Return the value associated with the column: weight
	 */
	public java.lang.Float getWeight () {
		return weight;
	}

	/**
	 * Set the value related to the column: weight
	 * @param weight the weight value
	 */
	public void setWeight (java.lang.Float weight) {
		this.weight = weight;
	}



	/**
	 * Return the value associated with the column: vweight
	 */
	public java.lang.Float getVweight () {
		return vweight;
	}

	/**
	 * Set the value related to the column: vweight
	 * @param vweight the vweight value
	 */
	public void setVweight (java.lang.Float vweight) {
		this.vweight = vweight;
	}



	/**
	 * Return the value associated with the column: estimated_dimensions
	 */
	public java.lang.Float getEstimatedDimensions () {
		return estimatedDimensions;
	}

	/**
	 * Set the value related to the column: estimated_dimensions
	 * @param estimatedDimensions the estimated_dimensions value
	 */
	public void setEstimatedDimensions (java.lang.Float estimatedDimensions) {
		this.estimatedDimensions = estimatedDimensions;
	}



	/**
	 * Return the value associated with the column: goods_natural
	 */
	public java.lang.String getGoodsNatural () {
		return goodsNatural;
	}

	/**
	 * Set the value related to the column: goods_natural
	 * @param goodsNatural the goods_natural value
	 */
	public void setGoodsNatural (java.lang.String goodsNatural) {
		this.goodsNatural = goodsNatural;
	}









	/**
	 * Return the value associated with the column: order_no
	 */
	public java.lang.String getOrderNo () {
		return orderNo;
	}

	/**
	 * Set the value related to the column: order_no
	 * @param orderNo the order_no value
	 */
	public void setOrderNo (java.lang.String orderNo) {
		this.orderNo = orderNo;
	}






	/**
	 * Return the value associated with the column: estimated_time_arrival
	 */
	public java.util.Date getEstimatedTimeArrival () {
		return estimatedTimeArrival;
	}

	/**
	 * Set the value related to the column: estimated_time_arrival
	 * @param estimatedTimeArrival the estimated_time_arrival value
	 */
	public void setEstimatedTimeArrival (java.util.Date estimatedTimeArrival) {
		this.estimatedTimeArrival = estimatedTimeArrival;
	}






	/**
	 * Return the value associated with the column: consolidation_allowed
	 */
	public java.lang.String getConsolidationAllowed () {
		return consolidationAllowed;
	}

	/**
	 * Set the value related to the column: consolidation_allowed
	 * @param consolidationAllowed the consolidation_allowed value
	 */
	public void setConsolidationAllowed (java.lang.String consolidationAllowed) {
		this.consolidationAllowed = consolidationAllowed;
	}









	/**
	 * Return the value associated with the column: rate
	 */
	public java.lang.Float getRate () {
		return rate;
	}

	/**
	 * Set the value related to the column: rate
	 * @param rate the rate value
	 */
	public void setRate (java.lang.Float rate) {
		this.rate = rate;
	}

	/**
	 * Return the value associated with the column: remark
	 */
	public java.lang.String getRemark () {
		return remark;
	}

	/**
	 * Set the value related to the column: remark
	 * @param remark the remark value
	 */
	public void setRemark (java.lang.String remark) {
		this.remark = remark;
	}



	/**
	 * Return the value associated with the column: status
	 */
	public java.lang.Integer getStatus () {
		return status;
	}

	/**
	 * Set the value related to the column: status
	 * @param status the status value
	 */
	public void setStatus (java.lang.Integer status) {
		this.status = status;
	}



	/**
	 * Return the value associated with the column: create_time
	 */
	public java.util.Date getCreateTime () {
		return createTime;
	}

	/**
	 * Set the value related to the column: create_time
	 * @param createTime the create_time value
	 */
	public void setCreateTime (java.util.Date createTime) {
		this.createTime = createTime;
	}



	/**
	 * Return the value associated with the column: state
	 */
	public java.lang.Integer getState () {
		return state;
	}

	/**
	 * Set the value related to the column: state
	 * @param state the state value
	 */
	public void setState (java.lang.Integer state) {
		this.state = state;
	}



	/**
	 * Return the value associated with the column: is_pendding
	 */
	public java.lang.Integer getIsPendding () {
		return isPendding;
	}

	/**
	 * Set the value related to the column: is_pendding
	 * @param isPendding the is_pendding value
	 */
	public void setIsPendding (java.lang.Integer isPendding) {
		this.isPendding = isPendding;
	}



	/**
	 * Return the value associated with the column: flag_read
	 */
	public java.lang.Integer getFlagRead () {
		return flagRead;
	}

	/**
	 * Set the value related to the column: flag_read
	 * @param flagRead the flag_read value
	 */
	public void setFlagRead (java.lang.Integer flagRead) {
		this.flagRead = flagRead;
	}

	/**
	 * Return the value associated with the column: have_msg_user
	 */
	public java.lang.String getHaveMsgUser () {
		return haveMsgUser;
	}

	/**
	 * Set the value related to the column: have_msg_user
	 * @param haveMsgUser the have_msg_user value
	 */
	public void setHaveMsgUser (java.lang.String haveMsgUser) {
		this.haveMsgUser = haveMsgUser;
	}



	/**
	 * Return the value associated with the column: gatway_id
	 */
	public java.lang.Integer getGatwayId () {
		return gatwayId;
	}

	/**
	 * Set the value related to the column: gatway_id
	 * @param gatwayId the gatway_id value
	 */
	public void setGatwayId (java.lang.Integer gatwayId) {
		this.gatwayId = gatwayId;
	}



	/**
	 * Return the value associated with the column: client_id
	 */
	public java.lang.Integer getClientId () {
		return clientId;
	}

	/**
	 * Set the value related to the column: client_id
	 * @param clientId the client_id value
	 */
	public void setClientId (java.lang.Integer clientId) {
		this.clientId = clientId;
	}



	/**
	 * Return the value associated with the column: create_by
	 */
	public java.lang.Integer getCreateBy_id () {
		return createBy_id;
	}

	/**
	 * Set the value related to the column: create_by
	 * @param createBy_id the create_by value
	 */
	public void setCreateBy_id (java.lang.Integer createBy_id) {
		this.createBy_id = createBy_id;
	}



	/**
	 * Return the value associated with the column: gatway_id
	 */
	public trans.model.Gatway getGatway () {
		return gatway;
	}

	/**
	 * Set the value related to the column: gatway_id
	 * @param gatway the gatway_id value
	 */
	public void setGatway (trans.model.Gatway gatway) {
		this.gatway = gatway;
	}



	/**
	 * Return the value associated with the column: client_id
	 */
	public trans.model.User getClient () {
		return client;
	}

	/**
	 * Set the value related to the column: client_id
	 * @param client the client_id value
	 */
	public void setClient (trans.model.User client) {
		this.client = client;
	}



	/**
	 * Return the value associated with the column: create_by
	 */
	public trans.model.User getCreateBy () {
		return createBy;
	}

	/**
	 * Set the value related to the column: create_by
	 * @param createBy the create_by value
	 */
	public void setCreateBy (trans.model.User createBy) {
		this.createBy = createBy;
	}



	/**
	 * Return the value associated with the column: stateHises
	 */
	public java.util.List<trans.model.SaStateHis> getStateHises () {
		return stateHises;
	}
	

	public java.lang.String getSaType() {
		return saType;
	}

	public void setSaType(java.lang.String saType) {
		this.saType = saType;
	}

	/**
	 * Set the value related to the column: stateHises
	 * @param stateHises the stateHises value
	 */
	public void setStateHises (java.util.List<trans.model.SaStateHis> stateHises) {
		this.stateHises = stateHises;
	}


	public String getMawbShipper() {
		return mawbShipper;
	}

	public void setMawbShipper(String mawbShipper) {
		this.mawbShipper = mawbShipper;
	}

	public java.lang.String getMawbConsignee() {
		return mawbConsignee;
	}

	public void setMawbConsignee(java.lang.String mawbConsignee) {
		this.mawbConsignee = mawbConsignee;
	}

	public java.lang.String getHawbConsignee() {
		return hawbConsignee;
	}

	public void setHawbConsignee(java.lang.String hawbConsignee) {
		this.hawbConsignee = hawbConsignee;
	}

	public java.lang.String getHawbShipper() {
		return hawbShipper;
	}

	public void setHawbShipper(java.lang.String hawbShipper) {
		this.hawbShipper = hawbShipper;
	}

	public java.lang.String getRemarksOnHawb() {
		return remarksOnHawb;
	}

	public void setRemarksOnHawb(java.lang.String remarksOnHawb) {
		this.remarksOnHawb = remarksOnHawb;
	}

	public String getTerm() {
		return term;
	}

	public void setTerm(String term) {
		this.term = term;
	}

	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof trans.model.Sa)) return false;
		else {
			trans.model.Sa sa = (trans.model.Sa) obj;
			if (null == this.getId() || null == sa.getId()) return false;
			else return (this.getId().equals(sa.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}